<?php
/**
 * Create by PhpStorm
 * User: lijia
 * Data: 2020/8/10
 * Time: 16:35
 */

namespace app\api\controller;


use app\api\business\AdBus;

class Ad extends Common
{
    public function __construct(){
        parent::__construct();
    }

    /**
     * 首页轮播
     * @return \think\response\Json
     */
    public function getList(){
        $where = [
            'ad_postion_id' => 1,
            'status' => 1
        ];
        $result = (new AdBus())->get($where);
        return resJson(200,'ok',$result);
    }



}